package com.xiyou.luckdraw.api.dal.mapper.luckdraw;

import com.xiyou.luckdraw.api.dal.entitys.UserInfo;
import com.xiyou.luckdraw.api.dto.user.UserInfoListRequest;
import com.xiyou.luckdraw.common.tkmapper.TkMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserInfo1Mapper extends TkMapper<UserInfo> {

    List<UserInfo> selectUserByExample(UserInfoListRequest userInfo);

    /**
     * 更新用户信息
     * @param userInfo
     * @return
     */
    Integer updateUserBySelective(UserInfo userInfo);

    /**
     * 查询统计一周内新增用户数
     * @return
     */
    List<Map> selectCountWeek();

    UserInfo selectActiveUserId(@Param("userId") Long userId);
//    List<UserInfo> selectActiveUser(@Param("userIds") List<Long> userIds);
}
